<?php
class C_MainEncounter extends Controller {
	
	var $template_mod;	
	
	public function C_MainEncounter($template_mod = "general") {		
		parent::Controller();	
		if (Celini::getCurrentController() == 'MainEncounter') {
			$menu =& Menu::getInstance();
			$menu->currentSection = 'patient';
		}		
		$this->template_mod = $template_mod;
		$this->view->path 	= 'main_encounter';
	}
	
	public function actionLoadOpenEncounterResults($recordId = 0, $canEditEncounter = 0){
		$recordId =	$_GET['recordId'];
		$canEditEncounter =	$_GET['canEditEncounter'];
		$this->assign('recordId',$recordId);
		$this->assign('canEditEncounter', $canEditEncounter);
		echo $this->view->render('editEncounter.html');
	}		
}
?>